package org.phoenixframework.api.course.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.phoenixframework.common.tools.ResultModel;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by IntelliJ IDEA.
 *
 * @author doublelifeke
 * Email: hautxxxyzjk@163.com
 * DateTime: 2021/3/14 12:48
 * Description:
 */
@Slf4j
@Api(tags = {"IndexController系统入口控制器"})
@AllArgsConstructor
@RestController
public class IndexController extends BaseController {

    @GetMapping("/admin")
    @ApiOperation(value = "admin")
    public ResultModel<?> admin() {
        //从Header中获取用户信息
        return ResultModel.ok("0");
    }

    @GetMapping("/test")
    @ApiOperation(value = "test")
    public ResultModel<?> test() {
        return ResultModel.ok("test");
    }

    @GetMapping("/it")
    @ApiOperation(value = "it")
    public ResultModel<?> it() {
        return ResultModel.ok("it");
    }
}
